/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package isd.general.modelo;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author Claudio
 */
@Entity
@Table(name = "grtzon")
public class GR_Zona implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "GRTZON_CODZON", nullable = false, length = 6)
    private String codzon;
    @Basic(optional = false)
    @Column(name = "GRTZON_DESCRP", nullable = false, length = 60)
    private String descrp;
    @Column(name = "GRTZON_DEBAJA")
    private Character debaja;
    
    public GR_Zona() {
    }

    public GR_Zona(String grtzonCodzon) {
        this.codzon = grtzonCodzon;
    }

    public GR_Zona(String grtzonCodzon, String grtzonDescrp) {
        this.codzon = grtzonCodzon;
        this.descrp = grtzonDescrp;
    }

    public String getCodzon() {
        return codzon;
    }

    public void setCodzon(String codzon) {
        this.codzon = codzon;
    }

    public Character getDebaja() {
        return debaja;
    }

    public void setDebaja(Character debaja) {
        this.debaja = debaja;
    }

    public String getDescrp() {
        return descrp;
    }

    public void setDescrp(String descrp) {
        this.descrp = descrp;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final GR_Zona other = (GR_Zona) obj;
        if ((this.codzon == null) ? (other.codzon != null) : !this.codzon.equals(other.codzon)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 79 * hash + (this.codzon != null ? this.codzon.hashCode() : 0);
        return hash;
    }

    @Override
    public String toString() {
        return "tv.global.modelo.Zona[grtzonCodzon=" + codzon + "]";
    }

}
